package com.sample.service.scheduling;

import org.springframework.scheduling.quartz.JobDetailBean;

/**
 * User: khanhpham
 * Date: 10/26/11
 */
public class JobFactory {

   public static JobDetailBean createJobDetailBean(final String jobName, Class clazz) {
      JobDetailBean jobDetail = new JobDetailBean();
      jobDetail.setName(jobName);
      jobDetail.setJobClass(clazz);

      return jobDetail;
   }
}
